﻿@model SimpleForum.Data.Models.ViewModels.UserViewModel

<table class="half align-left">
    <tr>
        <td>number of posts</td>
        <td>@Model.User.Posts.Count <span class="grey">(view posts by @Model.User.UserName)</span></td>
    </tr>
    <tr>
        <td>number of threads</td>
        <td>@Model.User.Threads.Count <span class="grey">(view threads by @Model.User.UserName)</span></td>
    </tr>
    @if (Model.ConsideredRating != null) {
    <tr>
        <td>considered</td>
        <td>@Model.ConsideredRating <img src="@Url.ThemeContent("~Images/icons/ratings/" + @Model.ConsideredRating.ToLower() + ".png")" style="vertical-align:middle;" /></td>
    </tr>
    }
    <tr>
        <td>number of posts rated</td>
        <td>@Model.User.PostRatings.Count</td>
    </tr>
    <tr>
        <td>number of posts reported</td>
        <td>@Model.User.PostReports.Count</td>
    </tr>
</table>

<div class="half align-right">
    <h2><strong>@Model.User.Achievements.Count</strong> Achievements</h2><br />
    @if (Model.User.Achievements.Count > 0) {
        foreach (var Achievement in Model.User.Achievements) {
            <span class="achievement" title="@Achievement.Achievement.Description">@Achievement.AchievementName</span>
        }
    } else {
        <span class="light-grey">@Model.User.UserName has not earned any achievements</span>
    }
</div>

<span class="clearfix">&nbsp;</span>